import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class group2{

    public static void main(String[] args) {
        String test = "学号=9\t总分数=119\t名字vxrjx\t排名10\tchinese\t:27\tphysics\t:9\tenglish\t:63\tmath\t:20\t";
        String re ="学号=([0-9]*[0-9])\\s.*名字([\\w]{1,20})\\.*";
//        String re ="学号=([0-9]*[0-9])\\.*名字([\\w]{1,20})\\.*"; 不行

        Pattern r = Pattern.compile(re);
        Matcher m = r.matcher(test);
        if(m.find()){
            System.out.println(m.group(1));System.out.println(m.group(2));
        }else System.out.println("not match");
    }



}
